package com.ext.aic.utils.device;

import java.io.File;

/**
 * Author lijinghuan
 * Email:ljh0576123@163.com
 * CreateTime:2020/10/4
 * Description:
 * Modifier:
 * ModifyContent:
 */
@SuppressWarnings("deprecation")
public class RootJudge {

    public static boolean isRoot() {
        try {
            return (new File("/system/bin/su").exists())
                    || (new File("/system/xbin/su").exists());
        } catch (Exception e) {
            return false;
        }
    }
}
